package com.java.polymorphism.exer_1;

/**
 * @author luzhikun
 * @date 2020/12/5- 15:40
 */
public class Animal_1 {
    String color;
    int leg;

    public Animal_1() {

    }

    public Animal_1(String color, int leg) {
        this.color = color;
        this.leg = leg;
    }

    public void eat() {
        System.out.println("动物进食");
    }
}
